package com.quanshu.change.person.adapter;

import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * 作者  李哲
 * 创建时间 2018/8/31
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
public class SeckillGoodsSellViewPagerAdapter extends FragmentPagerAdapter {
    private List<Fragment> fragmentList;
    private List<String> stringList;

    public SeckillGoodsSellViewPagerAdapter(FragmentManager fm, List<Fragment> fragmentList1, List<String> stringList1) {
        super(fm);
        fragmentList = fragmentList1;
        stringList = stringList1;
    }

    @Override
    public Fragment getItem(int position) {
        return fragmentList.get(position);
    }

    @Override
    public int getCount() {
        return fragmentList.size();
    }

    @Nullable
    @Override
    public CharSequence getPageTitle(int position) {
        return stringList.get(position);
    }
}
